package boot.service.impl;

import boot.entity.Emp;
import boot.mapper.EmpMapper;
import boot.service.IEmpService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author HLF
 * @since 2022-04-05
 */
@Service
public class EmpServiceImpl extends ServiceImpl<EmpMapper, Emp> implements IEmpService {
    @Resource
    private EmpMapper empMapper;

    @Override
    public List<Emp> getAllEmp() {
        return empMapper.selectAllEmp();
    }

    @Override
    public List<Emp> getAllEmp2() {
        return empMapper.selectAllEmp2();
    }
}
